-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue-50839 handle large int write input. #53338
issue-50839 handle large int write input. #53338
Conversation
Tagging subscribers to this area: @carlossanlop Issue DetailsFix #50839 , use uint arithmetic operation should be enough to handle mentioned case.
|
@@ -12,6 +12,8 @@ namespace System.IO.Tests | |||
{ | |||
public class BufferedStream_StreamAsync | |||
{ | |||
public static bool IsX64 { get; } = IntPtr.Size >= 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't necessary... you can use this (as a theory):
Line 43 in 57bfe47
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.Is64BitProcess))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor issues, otherwise LGTM. Thanks.
@lateapexearlyspeed There's some minor feedback to address on this PR. We'll be ready to re-review if you can get the PR updated in the next week or two; after that, this would most likely slip out to .NET 7.0. @adamsitnik This PR is assigned to you for follow-up/decision before the RC1 snap. |
Hi @jeffhandley and @adamsitnik , all comments are fixed now. |
src/libraries/System.Private.CoreLib/src/System/IO/BufferedStream.cs
Outdated
Show resolved
Hide resolved
Thanks, @lateapexearlyspeed. I just pushed a commit to fix one remaining spacing nit-pick. After the checks all run, I'll take another look to ensure everything is passing. |
I'm going to push a merge from main to get another run with the merged bits. |
The failed staging and installer checks looked transitory and unrelated; re-running them just to be certain. |
Fix #50839 , use uint arithmetic operation should be enough to handle mentioned case.